package com.wyz.controller;    

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**  
 * @Title HelloWorldController.java  
 * @description TODO  
 * @time 2017年3月14日 下午4:02:46  
 * @author wyz  
 * @version 1.0  
 **/
@Controller
public class HelloWorldController {
	
	@RequestMapping("/helloWorld")
	 public String helloWorld(Model model) {
	     model.addAttribute("message", "Hello World!");
	     return "helloWorld";
	 }
	
	@RequestMapping(value = "/h2")
	public String getH2(Model model) {
		
		model.addAttribute("message", "H2222");
		return "helloWorld";
	}

}
 